#ifndef T_BOX_STREAM_H
#define T_BOX_STREAM_H

#include "stable.h"
#include "t_av_packet.h"
#include "t_box_seek_manager.h"
#include "input/t_box_input_sequence.h"
#include "t_box_media.h"

class T_Box_Stream : public T_Box_Thread
{
    Q_OBJECT
protected:
    class T_Box_StreamPrivate *d_ptr;
    Q_DECLARE_PRIVATE(T_Box_Stream)
public:
    explicit T_Box_Stream(T_Box_Core *a_core);
    ~T_Box_Stream();
    T_Box_Core *core();
    bool openAudio();
    bool openVideo();
    T_AV_Packet *readPacket();
protected:
    virtual void run();
};

#endif // T_BOX_STREAM_H
